#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QMouseEvent>
class MyPushButton : public QPushButton
{
public:
    //explicit MyPushButton(QWidget *parent = nullptr);
    MyPushButton(QString normalImg,QString pressImg="");
    QString normalImgPath;
    QString pressImgPath;

    //弹跳特效
    void zoom1();
    void  zoom2();
   //重写按钮 ，按下和释放事件
    void mousePressEvent(QMouseEvent *e);
    void  mouseReleaseEvent(QMouseEvent *e);
signals:

};

#endif // MYPUSHBUTTON_H
